﻿@using System.Globalization
@using Abp.Configuration
@using Abp.Configuration.Startup
@using Abp.Web.Security.AntiForgery
@using FwProject
@using FwProject.Configuration
@using FwProject.SignalR
@using FwProject.Web.Resources
@inject FwProject.Timing.AppTimes AppTimes
@inject IAbpAntiForgeryManager AbpAntiForgeryManager
@inject IMultiTenancyConfig MultiTenancyConfig
@inject IWebResourceManager WebResourceManager
@inject ISettingManager SettingManager
@{
    Layout = null;
    AbpAntiForgeryManager.SetCookie(Context);
    var uiTheme = await SettingManager.GetSettingValueAsync(AppSettingNames.UiTheme);
    SetAntiforgeryCookieAndHeader();
}
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="robots" content="none" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Cache-Control" content="max-age=7200" />
    <meta http-equiv="expires" content="Mon, 20 Jul 2019 23:00:00 GMT" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta name="author" content="">
    <title>@(ViewBag.Title ?? "饭碗易购平台管理")</title>
    <link rel="icon" href="~/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="~/plugins/layui/css/layui.css" />
    <link rel="stylesheet" href="~/plugins/build/css/app.css" media="all">
    <link rel="stylesheet" href="~/static/css/public.css" media="all" />
    <link rel="stylesheet" href="~/lib/toastr/toastr.min.css" media="all" />
    @*<link href="~/static/css/public.css" rel="stylesheet" />*@
    <link rel="stylesheet" href="~/plugins/build/css/main.css" media="all" />
    <link rel="stylesheet" href="~/css/themes/default.css" media="all" id="skin" kit-skin />

    <style>

        .field-validation-error, .validation-summary-errors ul li {
            color: #a94442;
            font-size: 12px;
        }

        .validation-summary-errors ul li {
            list-style: none;
        }

            .field-validation-error:before, .validation-summary-errors ul li:before {
                content: "\f057";
                display: inline-block;
                font: normal normal normal 14px/1 FontAwesome;
                font-size: inherit;
                text-rendering: auto;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                margin-right: 2px;
                margin-right: 2px;
            }

        .laydate-theme-grid > a {
            position: relative;
        }

        .laydate-theme-grid > dl.layui-nav-child {
            display: none
        }

        .laydate-theme-grid > a i.layui-nav-mored {
            border-width: 6px;
            right: 10px;
            top: 27px;
            border-top-color: rgba(255,255,255,0.7);
            position: absolute;
            border-bottom-color: transparent;
            transition: all 0.3s linear 0.1s
        }

        .laydate-theme-grid.active > a {
            color: #fff;
        }

            .laydate-theme-grid.active > a i.layui-nav-mored {
                border-top-color: transparent;
                border-bottom-color: #fff;
                top: 21px;
            }

        .laydate-theme-grid.active > dl {
            display: block
        }

            .laydate-theme-grid.active > dl dd a {
                background-color: #5e5f62 !important;
                padding-left: 60px !important
            }
    </style>
    <!-- View specific styles -->
    @RenderSection("styles", required: false)


    @*<script type="text/javascript">
            var abp = abp || {}; abp.appPath = '@ApplicationPath';
        </script>
        @Scripts.Render("~/Bundles/vendor/js/top")*@
</head>
<body class="kit-theme">
    @RenderBody()

    <!--[if !IE]> -->
    <script src="~/Scripts/jquery-3.1.1.min.js"></script>
    <!-- <![endif]-->
    <!--[if IE]>
    <script src="/scripts/jquery-1.10.2.min.js"></script>
    <![endif]-->

    <script src="~/Scripts/json2.js"></script>

    @*<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
        <script src="~/Abp/Framework/scripts/abp.js"></script>*@
    <script src="~/Scripts/jquery.serialize-object.min.js" asp-append-version="true"></script>
    <script src="~/lib/toastr/toastr.js" asp-append-version="true"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js" asp-append-version="true"></script>
    <script src="~/Scripts/jquery.validate.min.js" asp-append-version="true"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js" asp-append-version="true"></script>
    <script src="~/lib/abp-web-resources/Abp/Framework/scripts/abp.js" asp-append-version="true"></script>
    <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js" asp-append-version="true"></script>
    <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.toastr.js" asp-append-version="true"></script>
    <script src="~/plugins/layui/layui.js"></script>

    <script type="text/javascript">
        $.validator.setDefaults({
            ignore: "input[type='hidden']"
        });
    </script>
    <script>

        function dateFtt(fmt, date) { //author: meizz
            var o = {
                "M+": date.getMonth() + 1,                 //月份
                "d+": date.getDate(),                    //日
                "h+": date.getHours(),                   //小时
                "m+": date.getMinutes(),                 //分
                "s+": date.getSeconds(),                 //秒
                "q+": Math.floor((date.getMonth() + 3) / 3), //季度
                "S": date.getMilliseconds()             //毫秒
            };
            if (/(y+)/.test(fmt))
                fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
            for (var k in o)
                if (new RegExp("(" + k + ")").test(fmt))
                    fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
            return fmt;
        }
    </script>

    <!-- View specific scripts -->
    @RenderSection("scripts", required: false)
</body>
</html>
